package com.shanzmoo.db.trade.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.shanzmoo.db.trade.entity.PayOrderBodyEntity;
import com.shanzmoo.db.trade.mapper.PayOrderBodyMapper;
import com.shanzmoo.db.trade.service.IPayOrderBodyService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 支付订单报文 服务实现类
 * </p>
 *
 * @author Gzhao
 * @since 2020-12-12
 */
@Service
public class PayOrderBodyServiceImpl extends ServiceImpl<PayOrderBodyMapper, PayOrderBodyEntity> implements IPayOrderBodyService {

    @Override
    public PayOrderBodyEntity getByPayNo(String payNo) {
        return baseMapper.selectOne(new QueryWrapper<PayOrderBodyEntity>().eq("pay_no", payNo));
    }
}
